import { useEffect } from "react";
import { useDebounce } from './hooks.js'

function App() {
    // const [instance] = useWindowScroll()

    // useEffect(() => {
    //     console.log(instance);

    // }, [instance])

    const handle = () => {
        console.log('hello');
    }
    const fn = useDebounce(handle, 1000)

    return (
        <div style={{ height: '200vh' }} onClick={fn}>hello</div>
    )
}

export default App;